import request from '@/utils/request'

// 查询仲裁项目列表
export function listProject(query) {
  return request({
    url: '/manager/arbitration/project/list',
    method: 'get',
    params: query
  })
}

// 查询仲裁项目详细
export function getProject(id) {
  return request({
    url: '/manager/arbitration/project/' + id,
    method: 'get'
  })
}
// 查询仲裁项目详细
export function getProjectDicts() {
  return request({
    url: '/manager/arbitration/project/getProjectDicts',
    method: 'get'
  })
}

// 新增仲裁项目
export function addProject(data) {
  return request({
    url: '/manager/arbitration/project',
    method: 'post',
    data: data
  })
}

// 修改仲裁项目
export function updateProject(data) {
  return request({
    url: '/manager/arbitration/project',
    method: 'put',
    data: data
  })
}

// 删除仲裁项目
export function delProject(id) {
  return request({
    url: '/manager/arbitration/project/' + id,
    method: 'delete'
  })
}

// 导出仲裁项目
export function exportProject(query) {
  return request({
    url: '/manager/arbitration/project/export',
    method: 'get',
    params: query
  })
}

// 新增立项
export function crateProject(data) {
  return request({
    url: '/manager/arbitration/project/createProject/',
    method: 'post',
    data: data
  })
}
// 提交缴费凭证
export function submitPaymentVoucher(projectId,data) {
  return request({
    url: '/manager/arbitration/project/submitPaymentVoucher/'+projectId,
    method: 'post',
    data: data
  })
}
// 通过projectId获取项目详情
export function projectDetailById(projectId) {
  return request({
    url: '/manager/arbitration/project/projectDetailById/'+projectId,
    method: 'get'
  })
}
// 通过projectId获取项目费用详情
export function projectExpenseDetailById(projectId,query) {
  return request({
    url: '/manager/arbitration/project/projectExpenseDetailById/'+projectId,
    method: 'get',
    params:query
  })
}
